<html ng-app="app" ng-controller="indexCtrl" class="ng-scope">

	<head lang="en">
		<style type="text/css">
			@charset "UTF-8";
			[ng\:cloak],
			[ng-cloak],
			[data-ng-cloak],
			[x-ng-cloak],
			.ng-cloak,
			.x-ng-cloak,
			.ng-hide:not(.ng-hide-animate) {
				display: none !important;
			}
			
			ng\:form {
				display: block;
			}
			
			.ng-animate-shim {
				visibility: hidden;
			}
			
			.ng-anchor {
				position: absolute;
			}
		</style>
		<meta charset="UTF-8">
		<meta http-equiv="Expires" content="0">
		<meta http-equiv="Pragma" content="no-cache">
		<meta http-equiv="Cache-control" content="no-cache">
		<meta http-equiv="Cache" content="no-cache">
		<title  class="ng-binding">大算盘智能推广</title>
		<link rel="icon" ng-href="dsp/oem/2018/5/29/1527591447204.ico" type="image/x-icon" href="dsp/oem/2018/5/29/1527591447204.ico" id="favicon">
		<link rel="stylesheet" href="lib/bootstrap/css/bootstrap.min.css">
		<link rel="stylesheet" href="css/base.css">
		<link type="text/css" rel="stylesheet" href="modules/agent/agbProfit/agbProfit.css?rand=v1.0.57">
		<link rel="stylesheet" href="../../oem/css/common.css" />
	</head>

	<body data-ext-version="1.4.5">
		<div class="nav_top">
			<div class="logo fl" id="logo"></div>
			<ul class="nav_list fl">

				<li>
					<a class="href_url" data="agentIndex.html">首页</a>
				</li>

				<li>

					<a class="toFirstSub href_url" data="customer.html">投放管理</a>
					<ul class="nav_dropdown" style="width: 1903px;">
						<li>
							<a class="href_url" data="customer.html">广告主列表</a>
						</li>

					</ul>
				</li>

				<li>
					<a class="toFirstSub href_url" data="bidding.html">报表中心</a>
					<ul class="nav_dropdown" style="width: 1903px;padding-left: 335px;">

						<li>
							<a class="href_url" data="bidding.html">竞价交易概况</a>
						</li>

						<li>
							<a class="href_url" data="deal.html">合约交易概况</a>
						</li>

						<!--<li>
							<a class="href_url" data="resources.html">合约资源报表</a>
						</li>-->

					</ul>
				</li>

				<li>
					<a data="account.html" class="toFirstSub href_url">系统管理</a>
					<ul class="nav_dropdown" style="padding-left: 235px; width: 1903px;">

						<li>
							<a class="href_url" data="account.html">账户管理</a>
						</li>

						<li>
							<a class="href_url" data="user.html">员工用户管理</a>
						</li>

						<li>
							<a class="href_url" data="adv.html">广告主管理</a>
						</li>
						<li>
							<a class="href_url" data="role.html">角色管理</a>
						</li>

					</ul>
				</li>

				<li>
					<a data="record.html" class="toFirstSub active href_url">财务管理</a>
					<ul class="nav_dropdown" style="padding-left: 309px; width: 1903px;">
						<li>
							<a class="href_url" data="record.html">财务记录</a>
						</li>

						<li>
							<a class="href_url" data="info.html">财务信息</a>
						</li>
						<li>
							<a  class="href_url active" data="profit.html">利润提取</a>
						</li>
					</ul>
				</li>
<!--
				<li>
					<a data="heYueZiYuanGuanLi.html" class="toFirstSub href_url">合约交易管理</a>
					<ul class="nav_dropdown" style="padding-left: 310px; width: 1903px;">

						<li>
							<a class="href_url" data="heYueZiYuanGuanLi.html">商品列表</a>
						</li>

						<li>
							<a class="href_url" data="buy.html">已购列表</a>
						</li>

					</ul>
				</li>-->
			</ul>
			<div class="user">
				<div class="user-avatar"></div>
				<div class="user-info">
					<p></p>
					<p></p>
				</div>
				<ul class="user-list">

					<li>余额：</li>

					<li>退出登录</li>
				</ul>
			</div>
		</div>
		<div class="profit-page page ng-scope">
			<h3 class="page-title">利润提取</h3>
			<div class="dsp-calendar" id="calendar"></div>

			<ul class="finance-list">
				<li>
					<p class="finance-title"><i></i>账户余额（元）</p>
					<p class="finance-number ng-binding accountBalance"></p>
				</li>
				<li>
					<p class="finance-title"><i></i>剩余利润（元）</p>
					<p class="finance-number ng-binding leftProfit"></p>
				</li>
				<li>
					<p class="finance-title"><i></i>剩余保价保量收入（元）</p>
					<p class="finance-number ng-binding leftIncome"></p>
				</li>
			</ul>
			<div class="filter-box clearfix ng-scope" >
				<div class="search ng-isolate-scope" callback="search" placeholder="广告主名称"> <input class="form-control search-input ng-pristine ng-untouched ng-valid ng-empty adname" type="text" placeholder="广告主名称"> <i class="search-icon adname_btn"></i> </div>
			</div>
			<div class="table-box">
				<div class="table-title">
					<h3 class="table-title-font">财务信息列表<small class="text-danger">利润为截至前一天0点所获取金额，当日利润次日0点更新</small></h3>
					<div class="table-download"	onclick="download()"></div>
				</div>
				<table>
					<thead>
						<tr>
							<th>广告主ID</th>
							<th>广告主</th>
							<th>总竞价交易利润</th>
							<th>竞价交易未提取利润</th>
							<th>竞价交易已提取利润</th>
							<th>总保价保量收入</th>
							<th>保价保量未提取收入</th>
							<th>保价保量已提取收入</th>
							<th>操作</th>
						</tr>
					</thead>
					<tbody class="list_profit">
						<!--<tr ng-repeat="item in list" class="ng-scope">
							<td>15363</td>
							<td>测试所</td>
							<td>0.00</td>
							<td>0.00</td>
							<td>0.00</td>
							<td>0.00</td>
							<td>0.00</td>
							<td>0.00</td>
							<td>
								<a  href="#/agentBg/15358/finance/profitDetail/15363/2">查看记录</a>
								&nbsp;&nbsp;&nbsp;&nbsp;
								<a  href="" ng-click="showProfits(item,'rtb')" class="ng-scope">提取竞价交易利润</a>
								&nbsp;&nbsp;&nbsp;&nbsp;
								<a  href="" ng-click="showProfits(item,'pdb')" class="ng-scope">提取保价保量收入</a>
							</td>
						</tr>-->
					</tbody>
				</table>
				<div id="pageToolbar" class="page">
					<div id="Paging_011739401246865855" class="ui-paging-container">
						<ul>
							<li class="js-page-first js-page-action ui-pager ui-pager-disabled">首页</li>
							<li class="js-page-prev js-page-action ui-pager ui-pager-disabled">上一页</li>
							<li class="ui-paging-toolbar"><span>跳转到</span><input type="text" class="ui-paging-count"> 页
								<select class="ui-select-pagesize">
									<option value="10">每页展示10条/页</option>
									<option value="20">每页展示20条/页</option>
									<option value="50">每页展示50条/页</option>
								</select><span> </span></li>
							<li class="js-page-last js-page-action ui-pager ui-pager-disabled">末页</li>
							<li class="js-page-next js-page-action ui-pager ui-pager-disabled">下一页</li>
						</ul>
					</div>
				</div>
			</div>

			<!--利润提取-->
			<div class="profits">
				<div class="form-group">
					<label class="ng-binding profits_title"></label>
					<input type="text" class="form-control ng-pristine ng-untouched ng-valid ng-empty profitsObj_money" placeholder="">
					<p>可提取利润 <span class="number ng-binding profitsObj_num"></span></p>
				</div>
				<div class="form-group btn-group">
					<button class="dsp-btn btn-green amount_btn">确定</button>
					<button class="dsp-btn btn-red close-layer">关闭</button>
				</div>
			</div>
		</div>
		<div id="__calendarPanel" style="position:absolute;top:0;visibility:hidden;z-index:9999;background-color:#FFFFFF;border:1px solid #cfccc7; border-radius: 5px; width:260px;height:216px;">
			<iframe name="__calendarIframe" id="__calendarIframe" width="100%" height="100%" scrolling="no" frameborder="0" style="margin:0px; border-radius: 5px;"></iframe>
		</div>
		<div class="layui-layer-move"></div>
	</body>
</html>
<script src="../../public/js/jquery.min.js"></script>
<script src="../../public/js/layui.all.js"></script>
<script src="js/agentIndex.js"></script>
<script src="js/profit.js"></script>
<script>
	$(function() {
		$('.user').on('click', function() {
			$(this).toggleClass('hover');
		})

		$('.user').mouseleave(function() {
			$(this).removeClass('hover');
		});

		$('.dropdown').on('click', function() {

			if($(this).hasClass("open")) {
				$(this).removeClass('open');
			} else {
				$('.dropdown').removeClass('open');
				$(this).addClass('open');
			}
		})
	})
</script>
<script src="../../oem/js/oem.js"></script>